﻿using System;

namespace BizElements.Web
{
    /// <summary>Defined business object property criteria.</summary>
    [Flags]
    public enum PropertySelection : uint
    {
        #region None, PrimaryKey, ForeignKey, AllProperties.

        /// <summary>No properties are selected.</summary>
        None = 0,
        /// <summary>PK part fields are selected.</summary>
        PrimaryKey = 1,
        /// <summary>All FK fields are selected.</summary>
        ForeignKey = 2,
        /// <summary>All PK and FK fields are selected.</summary>
        Key = PrimaryKey | ForeignKey,
        /// <summary>All fields are selected,</summary>
        AllProperties = UInt32.MaxValue

        #endregion
    }
}
